<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>回答</title>
    <meta name="keywords" content="课程学习问答系统">
    <meta name="description" content="课程学习问答系统">

    <script src="../static/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="../static/layui/layui.js" type="text/javascript"></script>
    <script src="../static/js/index/index.js" type="text/javascript"></script>
    <script src="../static/js/index/freezeheader.js" type="text/javascript"></script>
    <script src="../static/layui/lay/modules/layer.js" type="text/javascript"></script>
    <script src="../static/js/index/sliders.js" type="text/javascript"></script>
    <script src="../static/js/index/html5.js" type="text/javascript"></script>
    <script src="../static/js/index/article_pub.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../static/layui/css/modules/layer/default/layer.css"/>
    <link rel="stylesheet" href="../static/css/global.css"/>
</head>
<body>
<%@ include file="header.jsp" %>

<div class="layui-container container">
    <h2 class="page-title">对问题${Question.questionId}发起回答</h2>
    <h4 class="page-title">问题内容：</h4>
    <div class="detail-body">
        <p>${Question.questionText}</p>
        <a href="/download/${Question.questionId}"><img src="/images/${Question.questionPicName}" alt="图片未添加"/></a>
    </div>
    <div class="layui-form layui-form-pane">
        <form class="layui-form " enctype="multipart/form-data" method="post" style="text-aglin:center;" action="/insertAnswer" >
            <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                    <input type="hidden" class="layui-btn" name="questionId" value="${Question.questionId}" size="8"/>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                    <textarea id="content" name="content" lay-verify="content" placeholder="请输入内容" class="layui-textarea layui-hide"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                    <i class="layui-icon">&#xe67c;</i>上传附件 <input type="file" class="layui-btn" name="blFile" size="8"/>
                </div>
            </div>
            <div class="layui-form-item">
                <button class="layui-btn" lay-filter="*" lay-submit>立即发布</button>
            </div>
        </form>
    </div>
</div>
<%@ include file="footer.jsp" %></body>
</html>